package com.gao.entity;

import com.mybatisflex.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table("user")
public class User implements Serializable {
  @Id(keyType = KeyType.Auto)
  private Integer id;
  private String username;
  private String email;
  private String password;
  private String role;
  @Column(onInsertValue = "now()")
private LocalDateTime createTime;
  @Column(onUpdateValue = "now()")
private LocalDateTime updateTime;
}
